package com.md.youyouhui.net.repo;

import android.arch.lifecycle.LiveData;

import com.md.youyouhui.common.Resource;
import com.md.youyouhui.net.ApiServiceFac;
import com.md.youyouhui.net.response.GetHomeMealNewResponse;
import com.md.youyouhui.utils.calladapter.ResourceConvertUtils;

import java.util.List;

/**
 * Created by AdministratorZJ
 * on 2018/5/25.
 */

public class HomeMealNewRepo {
    private static HomeMealNewRepo INSTANCE;

    public static HomeMealNewRepo newInstance() {
        if (null == INSTANCE) {
            INSTANCE = new HomeMealNewRepo();
        }
        return INSTANCE;
    }


    public LiveData<Resource<List<GetHomeMealNewResponse>>> getHomeMealNew() {

        return ResourceConvertUtils.convertResource(ApiServiceFac.get().getHomeMealNew());
    }


}
